package ink.xiaobaibai.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 包月报表对象
 * @author: 小白白
 * @create: 2021-06-01
 **/

@Data
@NoArgsConstructor
public class MonthlyReportFormBo {

    public MonthlyReportFormBo(String orderId, String userName, BigDecimal orderAmount, String deviceCode, String adminUserName, String adminDepName, Date createTime,
                               String clientUserPhone, String address, String adminPhone) {
        this.orderId = orderId;
        this.userName = userName;
        this.orderAmount = orderAmount;
        this.deviceCode = deviceCode;
        this.adminUserName = adminUserName;
        this.adminDepName = adminDepName;
        this.createTime = createTime;
        this.phone = clientUserPhone;
        this.address = address;
        this.adminPhone = adminPhone;
    }

    /**
     * 包月订单表主键
     */
    @ExcelProperty("订单号")
    @ColumnWidth(18)
    private String orderId;

    /**
     * 用户id
     */
    @ExcelProperty("客户姓名")
    private String userName;

    /**
     * 客户电话
     */
    @ExcelProperty("客户电话")
    private String phone;

    /**
     * 客户地址
     */
    @ExcelProperty("客户地址")
    private String address;

    /**
     * 支付金额
     */
    @ExcelProperty("订单金额")
    @ColumnWidth(11)
    private BigDecimal orderAmount;

    /**
     * 机器码
     */
    @ExcelProperty("机器识别码")
    @ColumnWidth(16)
    private String deviceCode;

    /**
     * 对应负责人id
     */
    @ExcelProperty("负责人")
    private String adminUserName;

    /**
     * 负责人电话
     */
    @ExcelProperty("负责人电话")
    private String adminPhone;

    /**
     * 对应部门id
     */
    @ExcelProperty("部门")
    private String adminDepName;

    /**
     * 创建时间
     */
    @ExcelProperty("创建时间")
    private Date createTime;

    /**
     * 营业额
     */
    @ExcelProperty(value = "营业额", index = 8)
    private BigDecimal sumAmount;

}
